/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Sage.
 *
 * The Initial Developer of the Original Code is
 * Peter Andrews <petea@jhu.edu>.
 * Portions created by the Initial Developer are Copyright (C) 2005
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 * Peter Andrews <petea@jhu.edu>
 * Erik Arvidsson <erik@eae.net>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Override to hide icon and show text */
#toolsMenuButton {
  -moz-box-orient:  horizontal;
}

#toolsMenuButton .toolbarbutton-text {
  display:  -moz-box;
}

#toolsMenuButton .toolbarbutton-icon {
  display:  none;
}

#feedListToolbar toolbarbutton {
  list-style-image: url("chrome://sage/skin/toolbar-small.png") !important;
}

#checkFeeds {
  -moz-image-region: rect(0px 16px 16px 0px) !important;
}

#checkFeeds:hover {
  -moz-image-region: rect(16px 16px 32px 0px) !important;
}

#checkFeeds[disabled="true"] {
  -moz-image-region: rect(32px 16px 48px 0px) !important;
}

#checkFeeds:active {
  -moz-image-region: rect(48px 16px 64px 0px) !important;
}

#discoverFeeds {
  -moz-image-region: rect(0px 32px 16px 16px) !important;
}

#discoverFeeds:hover {
  -moz-image-region: rect(16px 32px 32px 16px) !important;
}

#discoverFeeds[disabled="true"] {
  -moz-image-region: rect(32px 32px 48px 16px) !important;
}

#discoverFeeds:active {
  -moz-image-region: rect(48px 32px 64px 16px) !important;
}


#statusBarImage {
  margin-left: 4px;
  width: 16px;
  height: 16px;
}
#statusBarImage.loading,
#statusBarImage.checking {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}
#statusBarImage.error {
  list-style-image: url("chrome://sage/skin/icon/error.gif");
}


#bookmarks-view treechildren::-moz-tree-image(leaf),
#bookmarks-view treechildren::-moz-tree-image(leaf, sage_state_no-updated) {
  -moz-image-region: auto !important;
  list-style-image: url("chrome://sage/skin/icon/no-updated.png") !important;
}
#bookmarks-view treechildren::-moz-tree-image(leaf, sage_state_updated) {
  -moz-image-region: auto !important;
  list-style-image: url("chrome://sage/skin/icon/updated.png") !important;
}
#bookmarks-view treechildren::-moz-tree-image(leaf, sage_state_unknown) {
  -moz-image-region: auto !important;
  list-style-image: url("chrome://sage/skin/icon/unknown.png") !important;
}
#bookmarks-view treechildren::-moz-tree-image(leaf, sage_state_error) {
  -moz-image-region: auto !important;
  list-style-image: url("chrome://sage/skin/icon/error.gif") !important;
}
#bookmarks-view treechildren::-moz-tree-cell-text(sage_state_updated) {
  font-weight: bold !important;
}

/* If this is removed, please remove next rule as well */
#bookmarksTree treechildren::-moz-tree-twisty {
  -moz-appearance: none !important;
  padding-right: 0px !important;
  padding-top: 0px !important;
  width:  0px !important;
  list-style-image: none !important;
}
/* Work around for bug in separators at level 0 when twisty has width 0 */
#bookmarksTree treechildren::-moz-tree-cell-text(Name, separator) {
  margin-left:  20px;
}

#bookmarksTree treechildren::-moz-tree-separator {
  -moz-appearance: separator !important;
  border-top: 1px solid ThreeDShadow !important;
  border-bottom: 1px solid ThreeDHighlight !important;
}

#bookmarksTreeBox,
#rssItemListBoxBox {
  min-height: 90px;
}

#rssItemListBox {
  -moz-appearance: none;
}

#rssItemListBox > listitem {
  font-weight:  bold;
}

#rssItemListBox > listitem[visited="true"] {
  font-weight:  normal;
}

#sage-splitter {
  border: none;
  border-bottom: 1px solid ThreeDLightShadow;
}

#rssTitleLabel:hover{
  text-decoration: underline;
  cursor: pointer;
}


/* ++++++++++ List Tool Bar ++++++++++++ */

#itemListToolbar toolbarbutton {
  list-style-image: url("chrome://sage/skin/toolbar-small.png") !important;
}

#itemListToolbar toolbarbutton label {
  display: none !important;
}

#markAsReadButton {
  -moz-image-region: rect(0px 80px 16px 64px) !important;
}

#markAsReadButton:hover {
  -moz-image-region: rect(16px 80px 32px 64px) !important;
}

#markAsReadButton:active {
  -moz-image-region: rect(48px 80px 64px 64px) !important;
}

#markAsReadButton[disabled="true"] {
  -moz-image-region: rect(32px 80px 48px 64px) !important;
}

#markAsUnreadButton {
  -moz-image-region: rect(0px 96px 16px 80px) !important;
}

#markAsUnreadButton:hover {
  -moz-image-region: rect(16px 96px 32px 80px) !important;
}

#markAsUnreadButton:active {
  -moz-image-region: rect(48px 96px 64px 80px) !important;
}

#markAsUnreadButton[disabled="true"] {
  -moz-image-region: rect(32px 96px 48px 80px) !important;
}

#markAllAsReadButton {
  -moz-image-region: rect(0px 48px 16px 32px) !important;
}

#markAllAsReadButton:hover {
  -moz-image-region: rect(16px 48px 32px 32px) !important;
}

#markAllAsReadButton:active {
  -moz-image-region: rect(48px 48px 64px 32px) !important;
}

#markAllAsReadButton[disabled="true"] {
  -moz-image-region: rect(32px 48px 48px 32px) !important;
}

#markAllAsUnreadButton {
  -moz-image-region: rect(0px 64px 16px 48px) !important;
}

#markAllAsUnreadButton:hover {
  -moz-image-region: rect(16px 64px 32px 48px) !important;
}

#markAllAsUnreadButton:active {
  -moz-image-region: rect(48px 64px 64px 48px) !important;
}

#markAllAsUnreadButton[disabled="true"] {
  -moz-image-region: rect(32px 64px 48px 48px) !important;
}


/* ++++++++++ Search ++++++++++ */
#barSearch {
  padding-bottom: 2px;
}

#imgSearchEngine {
  width: 16px;
  height: 16px;
}

#btnSearchSubmit {
  margin: 2px 2px 2px 0px;
  min-width: 0px;
  min-height: 0px;
  list-style-image: url("chrome://sage/skin/icon/search-submit.gif");
}

/* ++++++++++ popupEX ++++++++++ */

#rssItemToolTip {
  -moz-binding: url(chrome://sage/content/popupex.xml#popupex);
  padding: 0px !important;
}

.popupex-title {
  font-weight: bold;
  margin: 0px !important;
  padding: 3px !important;
}

.popupex-description {
  padding: 5px 5px 5px 20px !important;
  max-width: 26em;
}

.popupex-internal-box {
  margin: 2px;
  padding: 2px;
}
